package helloworld.delegate.course;

import helloworld.admin.bean.CourseAdminBean;
import helloworld.admin.service.course.CourseListService;
import helloworld.admin.service.course.CourseListServiceException;
/**
 *
 * @author TUYEN-DM
 * @version $Revision:   $ $Date:   $
 */
public class CourseListDelegate 
{

	public CourseListDelegate() 
	{
	}

	public CourseAdminBean[] findCourses(String centerName) throws CourseListServiceException
	{
		//Generally a EJB lookup on ServiceLocator goes here.
		//For simplicity, Customer List Service is just a POJO in our case
		
		CourseListService custListService = new CourseListService();
		return custListService.findCourses(centerName);
	}
}